<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>公司管理</title>
    <!--css-->
    <link href="/plugins/layui/dist/css/layui.css" rel="stylesheet"/>
    <link href="/css/common/common.css" rel="stylesheet"/>
</head>
<body>

<div style="padding: 20px; background-color: #F2F2F2;">

    <!--搜索框容器-->
    <div class="layui-card">
        <div class="layui-card-body">
            <div class="layui-form-item search-bar">
                <div class="layui-inline">
                    <label class="layui-form-label">搜索条件：</label>
                    <div class="layui-input-inline">
                        <input type="text" id="company_name_search_text" class="layui-input" placeholder="请输入公司简称">
                    </div>
                    <div class="layui-input-inline">
                        <button class="layui-btn" id="company_search_btn">搜索</button>
                        <button type="reset" class="layui-btn layui-btn-primary" id="reset_search_btn">重置</button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!--数据表容器-->
    <div class="layui-card">
        <div class="layui-card-body">
            <div class="layui-input-inline">
                <button class="layui-btn" id="add_company_btn">
                    <i class="layui-icon">&#xe608;</i> 添加
                </button>
            </div>
            <div class="layui-form-item search-bar">
                <table class="layui-table" id="company_table" lay-filter="company"></table>
            </div>
            <!--分页组件容器-->
            <div id="company_page_content"></div>
        </div>
    </div>

</div>

<!--toolbar-->
<script type="text/html" id="company_table_tool_bar">
    <a class="layui-btn layui-btn-xs" lay-event="editCompanyInfo">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delCompanyInfo">删除</a>
</script>

<!--form-content-->
<div id="company_form_content" class="form-content">
    <form class="layui-form" action="return false">
        <div class="layui-form-item">
            <div class="layui-form-item">
                <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>公司类型</label>
                <div class="layui-input-block">
                    <select id="company_type">
                    </select>
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>公司名称</label>
            <div class="layui-input-block">
                <input id="company_name" type="text" placeholder="请输入公司名称" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>公司简称</label>
            <div class="layui-input-block">
                <input id="company_short_name" type="text" placeholder="请输入公司简称" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>有效期</label>
            <div class="layui-input-block">
                <input id="add_validityPeriod" type="text" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>生效标识</label>
            <div class="layui-input-block">
                <select id="add_active_flag">
                    <option value="0">生效</option>
                    <option value="1">冻结</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>允许注册人数</label>
            <div class="layui-input-block">
                <input id="add_allow_user_count" type="number" placeholder="请输入允许注册人数" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">公司电话</label>
            <div class="layui-input-block">
                <input id="company_tel" type="text" placeholder="请输入公司电话" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>公司联系人</label>
            <div class="layui-input-block">
                <input id="contact_person" type="text" placeholder="请输入公司联系人" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">联系人电话</label>
            <div class="layui-input-block">
                <input id="contact_tel" type="text" placeholder="请输入联系人电话" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>联系人邮箱</label>
            <div class="layui-input-block">
                <input id="email" type="email" placeholder="请输入联系人邮箱" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">营业执照号</label>
            <div class="layui-input-block">
                <input id="business_license" type="text" placeholder="请输入营业执照号" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">组织机构代码</label>
            <div class="layui-input-block">
                <input id="Organization_code" type="text" placeholder="请输入组织机构代码" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>所在国家</label>
            <div class="layui-input-block">
                <input id="country" type="text" placeholder="请输入国家" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">地址</label>
            <div class="layui-input-block">
                <input id="address" type="text" placeholder="请输入地址" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>进出口类型</label>
            <div class="layui-input-block">
                <select id="trade_type">
                    <option value="1">进口</option>
                    <option value="2">出口</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">商品大类</label>
            <div class="layui-input-block">
                <input id="product_category" type="text" placeholder="请输入商品大类" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">公司性质</label>
            <div class="layui-input-block">
                <input id="business_type" type="text" placeholder="请输入公司性质" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">成立日期</label>
            <div class="layui-input-block">
                <input id="established_year" type="date" placeholder="请输入成立日期" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">人员规模</label>
            <div class="layui-input-block">
                <input id="employes_size" type="text" placeholder="请输入人员规模" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">公司详情</label>
            <div class="layui-input-block">
                <textarea id="company_detail" name="company_detail" placeholder="请输入公司详情" class="layui-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">二级域名</label>
            <div class="layui-input-block">
                <input id="SLD" type="text" placeholder="请输入二级域名" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>等级</label>
            <div class="layui-input-block">
                <input id="grade" type="text" placeholder="请输入等级" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea id="remark" name="remark" placeholder="请输入备注信息" class="layui-textarea"></textarea>
            </div>
        </div>
    </form>
</div>

<!--edit-form-content-->
<div id="company_edit_form_content" class="form-content">
    <form class="layui-form" action="return false">
        <input type="hidden" id="upd_companyId" />
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>公司类型</label>
            <div class="layui-input-block">
                <select id="upd_company_type">
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>公司名称</label>
            <div class="layui-input-block">
                <input id="upd_company_name" type="text" placeholder="请输入公司名称" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>公司简称</label>
            <div class="layui-input-block">
                <input id="upd_company_short_name" type="text" placeholder="请输入公司简称" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>有效期</label>
            <div class="layui-input-block">
                <input id="update_validityPeriod" type="text" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>生效标识</label>
            <div class="layui-input-block">
                <select id="update_active_flag">
                    <option value="0">生效</option>
                    <option value="1">冻结</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>允许注册人数</label>
            <div class="layui-input-block">
                <input id="update_allow_user_count" type="number" placeholder="请输入允许注册人数" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">公司电话</label>
            <div class="layui-input-block">
                <input id="upd_company_tel" type="text" placeholder="请输入公司电话" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>公司联系人</label>
            <div class="layui-input-block">
                <input id="upd_contact_person" type="text" placeholder="请输入公司联系人" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">联系人电话</label>
            <div class="layui-input-block">
                <input id="upd_contact_tel" type="text" placeholder="请输入联系人电话" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>联系人邮箱</label>
            <div class="layui-input-block">
                <input id="upd_email" type="email" placeholder="请输入联系人邮箱" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">营业执照号</label>
            <div class="layui-input-block">
                <input id="upd_business_license" type="text" placeholder="请输入营业执照号" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">组织机构代码</label>
            <div class="layui-input-block">
                <input id="upd_organization_code" type="text" placeholder="请输入组织机构代码" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>所在国家</label>
            <div class="layui-input-block">
                <input id="upd_country" type="text" placeholder="请输入国家" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">地址</label>
            <div class="layui-input-block">
                <input id="upd_address" type="text" placeholder="请输入地址" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>进出口类型</label>
            <div class="layui-input-block">
                <select id="upd_trade_type">
                    <option value="1">进口</option>
                    <option value="2">出口</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">商品大类</label>
            <div class="layui-input-block">
                <input id="upd_product_category" type="text" placeholder="请输入商品大类" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">公司性质</label>
            <div class="layui-input-block">
                <input id="upd_business_type" type="text" placeholder="请输入公司性质" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">成立日期</label>
            <div class="layui-input-block">
                <input id="upd_established_year" type="date" placeholder="请输入成立日期" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">人员规模</label>
            <div class="layui-input-block">
                <input id="upd_employes_size" type="text" placeholder="请输入人员规模" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">公司详情</label>
            <div class="layui-input-block">
                <textarea id="upd_company_detail" name="company_detail" placeholder="请输入公司详情" class="layui-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">二级域名</label>
            <div class="layui-input-block">
                <input id="upd_sld" type="text" placeholder="请输入二级域名" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #c60023;margin-right: 3px;">*</span>等级</label>
            <div class="layui-input-block">
                <input id="upd_grade" type="text" placeholder="请输入等级" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea id="upd_remark" name="remark" placeholder="请输入备注信息" class="layui-textarea"></textarea>
            </div>
        </div>
    </form>
</div>
<!--js-->
<script src="/plugins/jquery/jquery-2.2.4.min.js"></script>
<script src="/plugins/layui/dist/lay/modules/layer.js"></script>
<script src="/plugins/layui/dist/layui.js"></script>
<script src="/js/common/sinoUtil.js"></script>
<script src="/js/system/company.js"></script>
</body>
</html>